package com.kehongborui.fliggy.service.impl;

import com.kehongborui.fliggy.entity.RoleModule;
import com.kehongborui.fliggy.mapper.RoleModuleMapper;
import com.kehongborui.fliggy.service.ModuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief
 * @email 122162005@qq.com
 * @date 2018-09-12
 */
@Service
public class ModuleServiceImpl implements ModuleService {
    @Autowired
    private RoleModuleMapper roleModuleMapper;

    @Override
    public List<RoleModule> findByRoleId(Integer roleId) {
        return roleModuleMapper.findByRoleId(roleId);
    }
}
